package cn.quang.search.toolkit.component.items.impl.aggregation;

/**
 * 聚合查询sql构造器
 * @author lilaixiang
 */
public enum ESAggregationFunctionEnum {
    MIN("min( ? )"),
    MAX("max( ? )"),
    COUNT("count( ? )"),
    COUNT_DISTINCT("count( distinct ? )"),
    ;
    private final String function;

    ESAggregationFunctionEnum(String function){
        this.function = function;
    }

    public String getFunction() {
        return function;
    }
}
